:root {
  --up-popup-background: #fff;
  --up-popup-transition: transform 0.3s;
  --up-popup-round-radius: 16px;
  --up-popup-close-icon-size: 22px;
  --up-popup-close-icon-color: var(--up-gray-5);
  --up-popup-close-icon-margin: 16px;
  --up-popup-close-icon-z-index: 1;
}
.up-popup {
  overflow: hidden !important;
  .up-popup-content {
    position: fixed;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 6px;
    background: var(--up-popup-background);
    transition: var(--up-popup-transition);
    -webkit-overflow-scrolling: touch;
  }
  &--bottom {
    bottom: 0;
    left: 0;
    width: 100%;
  }
  &--round {
    border-radius: 16px 16px 0 0;
  }
  &-slide-top-enter-active,
  &-slide-left-enter-active,
  &-slide-right-enter-active,
  .up-popup-enter-active {
    transition-timing-function: ease-out;
  }

  &-slide-top-leave-active,
  &-slide-left-leave-active,
  &-slide-right-leave-active,
  .up-popup-leave-active {
    transition-timing-function: ease-in;
  }

  &-slide-top-enter-from,
  &-slide-top-leave-active {
    transform: translate3d(0, -100%, 0);
  }

  &-slide-right-enter-from,
  &-slide-right-leave-active {
    transform: translate3d(100%, -50%, 0);
  }

  .uppopup-enter {
    transform: translate3d(0, 100%, 0);
    background-color: blue;
  }
  .uppopup-leave {
    transform: translate3d(0, 100%, 0);
    background-color: blue;
    opacity: 0;
  }

  &-slide-left-enter-from,
  &-slide-left-leave-active {
    transform: translate3d(-100%, -50%, 0);
  }
}